#mainHeader {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: #5C2018;
    line-height: 1.2;
    margin: 0;
}

.logo-text p {
    font-size: 11px;
    color: #8A7D6B;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #231815;
}

.nav-link {
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    height: 2px;
    background: #5C2018;
    left: 0;
    right: 0;
    bottom: 3px;
}

.nav-links a.active {
    color: #5C2018;
}

.btn-signin,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #5C2018;
    border-radius: 30px;
    background: transparent;
    color: #5C2018;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-signin:hover,
.btn-login:hover {
    background: #5C2018;
    color: #fff;
    border-color: #5C2018;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    background: #5C2018;
    border: 1px solid #5C2018;
    color: #fff !important;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #752E24;
    transform: translateY(-2px);
    border-color: #752E24;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #5C2018;
    cursor: pointer;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #FAF3E5;
    font-family: 'DM Sans', sans-serif;
    padding: 0;
    line-height: 1.5;
}

.sub-nav {
    max-width: 1200px;
    margin: 1rem auto 2rem;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sub-nav a {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #5C4033;
    background: #F0E6D2;
    transition: all 0.2s ease;
}

.sub-nav a.active {
    background: #E2D4B7;
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 800px;
    padding: 0 1rem;
}

.section-header h2 {
    color: #5C2018;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #8A7D6B;
}

.events-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 25px;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.event-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(92, 32, 24, 0.08);
}

.event-date {
    background: #5C2018;
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.event-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2B2B2B;
}

.event-time,
.event-location {
    color: #6B6054;
    margin: 0.5rem 0;
}

.btn-register {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    background: #5C2018;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

.btn-register:hover {
    background: #752E24;
}

.btn-register.registered {
    background: #8A7D6B;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-unregister {
    width: 100%;
    padding: 0.7rem;
    background: #F3E5E5;
    color: #A83232;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 0.7rem;
    cursor: pointer;
    display: none;
    transition: background 0.2s ease;
}

.btn-unregister:hover {
    background: #F8D4D4;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    left: 1rem;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #5C2018;
}

.toast.warning {
    border-left: 4px solid #D97706;
}

.toast.info {
    border-left: 4px solid #3B82F6;
}


@media (max-width: 900px) {
    .nav-container {
        padding: 15px;
    }
    .nav-links {
        gap: 10px;
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    .logo-text h1 {
        font-size: 16px;
    }
    .btn-signin, .btn-login, .btn-primary {
        padding: 8px 15px;
        font-size: 13px;
    }
    .sub-nav {
        padding: 0 15px;
    }
    .events-grid {
        padding: 0 15px;
    }
    .menu-toggle {
        display: block;
    }
}